package com.poker.repository;

import com.poker.entity.ActivityContent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface ActivityContentRepository extends JpaRepository<ActivityContent,String> {

    @Query(value = "select * from activity_content where activity_id=?",nativeQuery = true)
    ActivityContent findByActivityId(String id);
}
